#!/usr/bin/env python 
  
'makeFile.py -- create a file'
  
import os 
ls = os.linesep 
  
# get filename 
#while True: 
#  fname = raw_input('Input an unused file name >') 
#  if os.path.exists(fname): 
#    print "ERROR: '%s' already exists" %fname 
#  else: 
#    break
  
# get file content lines 
#all = [] 
#print "\nEnter lines (input '.' to quit).\n"
  
# loop until user terminates input 
#while True: 
#  entry = raw_input('>') 
#  if entry == '.': 
#    break
#  else: 
#    all.append(entry) 
  
# write lines to file with proper line-ending 
fname='/home/xiaohua/data/capture_form_pi/cmd_shell/info_pic.txt' # the file name
fobj = open(fname, 'w') 
fobj.write('hello world\n xiaohua memeda') 
fobj.close() 
print 'DONE'